package kr.hkit.PowerJava.chapter07.work;

class Movie {
	private String movie_title;
	private int rating;
	private int year;
	public String getRating;
	public String getYear;
	public String getMovie_title() {
		return movie_title;
	}
	public void setMovie_title(String movie_title) {
		this.movie_title = movie_title;
	}
	public int getRating() {
		return rating;
	}
	public void setRating(int rating) {
		this.rating = rating;
	}
	public int getYear() {
		return year;
	}
	public void setYear(int year) {
		this.year = year;
	}
	void print(String movi_title, int rating, int year) {
		this.movie_title = movie_title;
		this.rating = rating;
		this.year = year;
		System.out.println("영화 제목 : " + this.movie_title);
		System.out.println("영화 평점 : " + this.rating);
		System.out.println("개봉 년도 : " + this.year);
	}
}

public class Programming4 {
	public static void main(String[] args) {
		Movie m1 = new Movie();
		m1.setMovie_title("타짜2");
		m1.setRating(7);
		m1.setYear(2014);
		System.out.println("영화 제목 : " + m1.getMovie_title());
		System.out.println("영화 평점 : " + m1.getRating());
		System.out.println("개봉 년도 : " + m1.getYear());
	}
}
